$.ajax({
	cache:true,
	type:"GET",
	url:"/dingcan/dingcan/listFood.do",
	async:true,
	error:function(data) {
		alert("error");
	},
	success:function(data) {
		var result = $.parseJSON(data).result;
		var SCcontent = $(".SCcontent");
		var html = "";
		for(var i = 0; i < result.length; i++) {
			var item = result[i];
			html += '<a href="detailsp.html?oid='+ item.oid +'" target="_blank" title="菜品名称">' +
			           '<figure> ' +
			           '<img src="'+ item.pics[0] +'">' +
			           '<figcaption> ' +
			           '<span class="title">' + item.foodName + '</span> ' +
			           '<i>￥</i><span class="price">' + item.foodPrice + '</span> '+
			           '</figcaption></figure></a>';
			
		}
		SCcontent.html(html);
	}
}); 



    